package com.example.grape_effect.zzztest

import android.opengl.GLSurfaceView
import com.example.grape_effect.animation.Left2Right
import com.example.grape_effect.effet.filter.Camera2Filter
import com.example.grape_effect.base.BasicRenderer
import com.example.grape_effect.effet.filter.GrayFilter
import com.example.grape_effect.effet.filter.LYFilterQueue
import javax.microedition.khronos.opengles.GL10

class CameraRender(glSurfaceView1: GLSurfaceView): BasicRenderer(glSurfaceView1) {

//   private val animation:NoAnimation = NoAnimation()

    private var filter = Camera2Filter()
    private var showFilter = GrayFilter()
    private var animation = Left2Right()
    lateinit var queuen: LYFilterQueue

    override fun onDrawFrame(gl: GL10?) {

//        queuen.draw()
//        showFilter.setInTexture(queuen.getOutTexture())
//        showFilter.draw()

        filter.draw()
    }


}